package sctu.edu.java.year2016.team04.Liliang.day20160523.chapter4_2;

/**
 * Created by asus on 2016/5/23.
 * 编写Java程序，应用for循环打印菱形。
 */
public class lingxin {
    public static void main(String[] args) {
       int a ;
        for (a = 1;a <=5 ;a++)
            if (a == 1||a == 5){
                System.out.println("  *  ");
            }else {
                if(a == 2 ||a == 4){
                    System.out.println(" *** ");
                }else {
                    System.out.println("*****");
                }
            }

        }
}
